package com.ruoyi.project.dj.domain;

import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 学习动态对象 dj_study_dynamic
 *
 * @author ruoyi
 * @date 2025-09-15
 */
public class DjStudyDynamic extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 动态ID */
    private Long id;

    /** 党员ID */
    private Long memberId;

    /** 累计视频学习时长(秒) */
    private Integer totalVideoDuration;

    /** 累计材料阅读时长(秒) */
    private Integer totalMaterialDuration;

    /** 累计有声读物收听时长(秒) */
    private Integer totalAudioDuration;

    /** 累计红色书籍阅读时长(秒) */
    private Integer totalBookDuration;

    /** 已学习视频数量 */
    private Integer videoCount;

    /** 已学习材料数量 */
    private Integer materialCount;

    /** 已收听有声读物数量 */
    private Integer audioCount;

    /** 已阅读红色书籍数量 */
    private Integer bookCount;

    /** 最近学习资源 */
    private String lastStudyResource;

    /** 最近学习时间 */
    private Date lastStudyTime;

    /** 更新时间 */
    private Date updateTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setMemberId(Long memberId)
    {
        this.memberId = memberId;
    }

    public Long getMemberId()
    {
        return memberId;
    }
    public void setTotalVideoDuration(Integer totalVideoDuration)
    {
        this.totalVideoDuration = totalVideoDuration;
    }

    public Integer getTotalVideoDuration()
    {
        return totalVideoDuration;
    }
    public void setTotalMaterialDuration(Integer totalMaterialDuration)
    {
        this.totalMaterialDuration = totalMaterialDuration;
    }

    public Integer getTotalMaterialDuration()
    {
        return totalMaterialDuration;
    }
    public void setTotalAudioDuration(Integer totalAudioDuration)
    {
        this.totalAudioDuration = totalAudioDuration;
    }

    public Integer getTotalAudioDuration()
    {
        return totalAudioDuration;
    }
    public void setTotalBookDuration(Integer totalBookDuration)
    {
        this.totalBookDuration = totalBookDuration;
    }

    public Integer getTotalBookDuration()
    {
        return totalBookDuration;
    }
    public void setVideoCount(Integer videoCount)
    {
        this.videoCount = videoCount;
    }

    public Integer getVideoCount()
    {
        return videoCount;
    }
    public void setMaterialCount(Integer materialCount)
    {
        this.materialCount = materialCount;
    }

    public Integer getMaterialCount()
    {
        return materialCount;
    }
    public void setAudioCount(Integer audioCount)
    {
        this.audioCount = audioCount;
    }

    public Integer getAudioCount()
    {
        return audioCount;
    }
    public void setBookCount(Integer bookCount)
    {
        this.bookCount = bookCount;
    }

    public Integer getBookCount()
    {
        return bookCount;
    }
    public void setLastStudyResource(String lastStudyResource)
    {
        this.lastStudyResource = lastStudyResource;
    }

    public String getLastStudyResource()
    {
        return lastStudyResource;
    }
    public void setLastStudyTime(Date lastStudyTime)
    {
        this.lastStudyTime = lastStudyTime;
    }

    public Date getLastStudyTime()
    {
        return lastStudyTime;
    }
    public void setUpdateTime(Date updateTime)
    {
        this.updateTime = updateTime;
    }

    public Date getUpdateTime()
    {
        return updateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("memberId", getMemberId())
            .append("totalVideoDuration", getTotalVideoDuration())
            .append("totalMaterialDuration", getTotalMaterialDuration())
            .append("totalAudioDuration", getTotalAudioDuration())
            .append("totalBookDuration", getTotalBookDuration())
            .append("videoCount", getVideoCount())
            .append("materialCount", getMaterialCount())
            .append("audioCount", getAudioCount())
            .append("bookCount", getBookCount())
            .append("lastStudyResource", getLastStudyResource())
            .append("lastStudyTime", getLastStudyTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}